﻿namespace Draco.DataStructure
{
    public class D_Node<T>
    {
        private T data;
        private D_Node<T> next;

        public T Data
        {
            get { return data; }
            set { data = value; }
        }

        public D_Node<T> Next
        {
            get { return next; }
            set { next = value; }
        }

        public D_Node()
        {
            data = default(T);
            next = null;
        }

        public D_Node(T value)
        {
            data = value;
            next = null;
        }

        public D_Node(T value, D_Node<T> next)
        {
            this.data = value;
            this.next = next;
        }

        public D_Node(D_Node<T> next)
        {
            data = default(T);
            this.next = next;
        }
    }
}
